# 2025-3-2
n = int(input())
for i in range(n):
    s = int(input())
    print((s+5)//10*10)